package cn.hq.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import cn.hq.beans.Options;
import cn.hq.beans.Subjects;
import cn.hq.dao.ISubjectsDao;
import cn.hq.service.ISubjectService;

@Service("service")
public class SubjectServiceImpl implements ISubjectService {
	@Resource(name="subjectDao")
	private ISubjectsDao sdao;
	
	public List<Subjects> getAll() {
		return sdao.getAll();
	}
	public List<Options> getOnclick(int id) {
		
		return sdao.getOnclick(id);
	}
	
	public ISubjectsDao getSdao() {
		return sdao;
	}
	public void setSdao(ISubjectsDao sdao) {
		this.sdao = sdao;
	}
	
	public Options getOptionByid(int id) {
		return 	sdao.getOptionByid(id);
	}
	public void updateSubjects(int id) {
		sdao.updateSubejct(id);
	}
	public void updateOptions(int id) {
		sdao.updateOptions(id);
	}
	
}
